package com.meilai.project.entity.personal.mission;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 张驰
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mission_operator")
@ApiModel(value="MissionOperator对象", description="任务派发")
public class MissionOperator extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务id")
    private Long mission_id;

    @ApiModelProperty(value = "执行人id")
    private Long operator_id;

    @ApiModelProperty(value = "关闭提醒，0否，1是")
    private Boolean off_tip;

    @ApiModelProperty(value = "关闭提醒时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime off_tip_at;

    @ApiModelProperty(value = "已读，0否，1是")
    private Boolean read;

    @ApiModelProperty(value = "已读时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime read_at;

    @ApiModelProperty(value = "完成，0否，1是")
    private Boolean complete;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime complete_at;

    @ApiModelProperty(value = "已提醒次数")
    private Long continue_tip_count;

    @ApiModelProperty(value = "完成说明")
    private String complete_memo;

}
